﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Copad.BusinessCard.Model;
using Copad.BusinessCard.BLL;

/// <summary>
///PageBase 的摘要说明
/// </summary>
public class BusinessCardPageBase : System.Web.UI.Page
{
    public BusinessCardPageBase()
    {

    }

    protected override void OnLoad(EventArgs e)
    {
        //if (Session["userInfo"] == null)
        //{
        //    UserInfo usersession = new UserBLL().ValidateUser("intorise", "12345678");
        //    Manager.SetLogined(usersession, Session);
        //    base.OnLoad(e);
        //    return;
        //}

        if (Session["userInfo"] == null)
        {
            Response.Write("<script>parent.location='login.aspx';</script>"); Response.Flush(); return;
            Response.Redirect("login.aspx");
        }
        base.OnLoad(e);
    }
}